package reflex_and_annotation.entity;

/**
 * @Author WLJ
 * @Description //TODO
 * @Date 15:52 2023/8/29
 * @Param
 * @return
 **/
public class User extends UserFather {
    public User() {
        System.out.println("公共无参构造器");
    }
    public User(int paramInt, String paramStr) {
        System.out.println("公共有参构造器paramInt：【" + paramInt + "】,paramStr：【" + paramStr + "】");
        this.s = paramStr;
        this.i = paramInt;
    }
    private User(int paramInt) {
        System.out.println("私有有参构造器paramInt：【" + paramInt + "】");
    }
    private String s;

    int i;

    public String pubs;

    private static String priss;

    public static String pubss;

    public int getI() {
        return this.i;
    }

    public void pub() {
        System.out.println("公共方法无参无返回值");
    }
    public void pub(int param) {
        System.out.println("公共方法有1个参数param：【" + param + "】，无返回值");
    }
    public String pub(int param1, String param2) {
        System.out.println("公共方法有2个参数param1：【" + param1 + "】，param2：【" + param2 + "】，有返回值【" + param2 + "】");
        return this.pubs;
    }

    public static void pubStatic() {
        System.out.println("公共静态方法无参无返回值");
    }

    public static void priStatic() {
        System.out.println("私有静态方法无参无返回值");
    }

    private void pri() {
        System.out.println("私有方法无参数");
    }
}
